package com.example.librarymanagementproject2.Common.exception;

/**
 * @ClassName GlobalException
 * @Description 异常类信息
 * @Author Kx
 * @Date 2025/9/29 11:36
 * @Version 1.0
 */
public class GlobalException extends RuntimeException{
    private Integer code;

    public GlobalException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }
}
